<%@page import="tu.java.movie.MovieImage"%>
<%@page import="java.util.Vector"%>
<%@page import="tu.java.movie.Movie"%>
<%@page import="tu.java.login.User.accountType"%>
<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="template/header.jspf" %>
  <div class="slider-wrapper theme-default" >
  	  <div id="slider" class="nivoSlider">
<%		Vector<Movie> movies = Movie.searchMovies("", 0);
		for(int i=0; i<movies.size(); i++){
			Vector<MovieImage> movieImages = movies.get(i).getMovieImages();
			for(int j=0; j<movieImages.size();j++){
				MovieImage movieImage = movieImages.get(j);
				session.setAttribute("imageContent"+i+""+j, movieImage.getMovieImage()); %>
				 <img src="includes/showFile.jsp?id=<%=i%><%=j%>" data-thumb="includes/showFile.jsp?id=<%=i%><%=j%>" />
		<%	}			
		}
%>    </div>
 	</div>   
<%@include file="template/footer.jspf" %>